<%-- 
    Document   : header
    Created on : 2 avr. 2010, 14:28:44
    Author     : SaLaH
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="style.css" type="text/css" media="screen" />

 <script type="text/javascript" src="js/validationCustomer.js"></script>
        <script type="text/javascript" >
            dojo.addOnLoad(init);
        </script>
        <title>CinéShop</title>
    </head>
    <body>
       <div class="Header">
                    <div class="Header-png"></div>
                    <div class="Header-jpeg"></div>
                    <div class="logo">
                        <table width="100%">
                            <tr>
                            <td> 
                        <h1 id="name-text" class="logo-name"><a href="ServletLoad">CinéShop</a></h1>
                        <div id="slogan-text" class="logo-text"> </div>
                            </td>
                            <td align="right">
                                  <c:if test="${empty utilisateur}">
                                       <form method="post" action="ServletConnexion">
                                        <input type="text"  name="email"  />
                                        <input type="password"  name="password" />
                                        <input type="hidden" name="action" value="connexion"/>
                                        <input type="submit" name="connexion" value="connexion" />
                                        </form>
                                  </c:if>
                                <c:if test="${not empty utilisateur}">
                                    <div class="cart"> <p><STRONG>Bienvenue ${utilisateur.nom}</STRONG><br/>
                                        <a href="ServletConnexion" >Déconnexion</a></p>
                                    </div>
                                </c:if>
                            </td>
                            </tr>
                        </table>
                      
                       
                    </div>
                     
                </div>
    </body>
</html>
